<%--
$Id: header.jsp 13 2010-11-02 15:35:59Z feigme $
--%>
<fmt:setBundle basename="i18n/globalMessages"/>
<div class="clearfix">
	<div id="user_nav">
		<a id="frist" title="Login" class="welcome" href="#">Message !</a>
		<sec:authorize access="isAuthenticated()">
		<sec:authentication property="principal" var="authentication"/>
		<a id="uHome" href="#">${authentication.username }</a>
		<a onclick="logout();" id="logout" href="#"><fmt:message key="user.logout"/></a>
		</sec:authorize>
		<sec:authorize access="isAnonymous()">
    	<a id="login" href="#"><fmt:message key="user.login"/></a>
    	<a id="register" href="#"><fmt:message key="user.register"/></a>
    	</sec:authorize>
    	<sec:authorize access="hasAnyRole('ROLE_ADMIN')">
    	<a id="admin" href="${ctx }/admin/">Admin</a>
    	</sec:authorize>
    	<a href="#">example</a>
    	<a class="nobg" href="#"><fmt:message key="common.help"/></a>
  	</div>
</div>
<div class="clearfix">
	<div id="branding">
		<a href="#"></a>
	</div>
	<div id="gg">
		<a target="_blank" href="#"></a>
	</div>
</div>